<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="{{asset('libs/dist/img/user2-160x160.jpg')}}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>Alexander Pierce</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">网站导航</li>

            {{--          @foreach ($menu as $k=>$v)
                          --}}{{--<p>This is user {{ $menu}}</p>--}}{{--
                          @if(isset($v['_child']))
                              <li class="treeview treelist " data-menu="{{$v['url']}}">
                          @else
                              <li class="treelist" data-menu="{{$v['url']}}">
                                  @endif
                                  @if(isset($v['_child']))
                                      <a href="#">
                                          <i class="fa {{$v['icon_class']}}"></i> <span>{{$v['title']}}</span>
                                          <span class="pull-right-container">
                                              <i class="fa fa-angle-left pull-right"></i>
                                          </span>
                                      </a>
                                  @else
                                      <a href="{{url($v['url'])}}">
                                          <i class="fa {{$v['icon_class']}}"></i> <span>{{$v['title']}}</span>
                                      </a>
                                  @endif
                                  <ul class="treeview-menu">
                                      @if(isset($v['_child']))
                                          @foreach ($v['_child'] as $k1=>$v1)
                                              <li class="" data-menu="{{$v1['url']}}"><a href="{{url($v1['url'])}}" ><i class="fa fa-circle-o"></i> {{$v1['title']}}</a></li>
                                          @endforeach
                                      @else

                                      @endif

                                  </ul>
                              </li>
                              @endforeach
          --}}

        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
